<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="jquery/jquery-2.2.3.min.js"></script>
</head>
<body>


<button id="client-hello">client-hello</button> <br/>
<button id="client-call">client-call</button> <br/>

<button id="server-hello">server-call</button> <br/>

    <script>

        $(document).on("click","#client-hello",function(){
            $.get("/client/hello",function(res){
                alert(res);
            })
        })

        $(document).on("click","#client-call",function(){
            $.get("/client/call",function(res){
                alert(res);
            })
        })

        $(document).on("click","#server-hello",function(){
            $.get("/server/hello",function(res){
                alert(res);
            })
        })

    </script>
</body>
</html>